翻訳と辞書
Words near each other
・ Exit Planet Dust
・ Exit planning
・ Exit poll
・ EXIT procedure
・ Exit Project
・ Exit pupil
・ Exit rate
・ Exit Records
・ Exit row
・ Exit sign
・ Exit Smiling
・ Exit Speed
・ Exit Stage Left
・ Exit Stage Right
・ Exit State
Exit status
・ Exit strategy
・ Exit Strategy (album)
・ Exit strategy (disambiguation)
・ Exit Strategy (film)
・ Exit Strategy of the Soul
・ Exit Sunset Boulevard
・ Exit tax
・ Exit Ten
・ Exit Ten (EP)
・ Exit the Dragon
・ Exit the Dragon, Enter the Tiger
・ Exit the King
・ Exit the Vamp
・ EXIT Theatre


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Exit status : ウィキペディア英語版
Exit status

The exit status or return code of a process in computer programming is a small number passed from a child process (or callee) to a parent process (or caller) when it has finished executing a specific procedure or delegated task. In DOS, this may be referred to as an errorlevel.
When computer programs are executed, the operating system creates an abstract entity called a process in which the book-keeping for that program is maintained. In multitasking operating systems such as Unix or Linux, new processes can be created by active processes. The process that spawns another is called a ''parent process'', while those created are ''child processes''. Child processes run concurrently with the parent process. The technique of spawning child processes is used to delegate some work to a child process when there is no reason to stop the execution of the parent. When the child finishes executing, it exits by calling the ''exit'' system call. This system call facilitates passing the exit status code back to the parent, which can retrieve this value using the ''wait'' system call.
==Semantics==
The parent and the child can have an understanding about the meaning of the exit statuses. For example, it is common programming practice for a child process to return zero to the parent signifying success. Apart from this return value from the child, other information like how the process exited, either normally or by a signal may also be available to the parent process.
The specific set of codes returned is unique to the program that sets it. Typically it indicates success or failure. The value of the code returned by the function or program may indicate a specific cause of failure. On many systems, the higher the value, the more severe the cause of the error.〔(【引用サイトリンク】title=Errorlevels )〕 Alternatively, each bit may indicate a different condition, which are then ''ored'' together to give the final value; for example, fsck does this.
Sometimes, if the codes are designed with this purpose in mind, they can be used directly as a branch index upon return to the initiating program to avoid additional tests.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Exit status」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.